
const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
  /*编译构建打包的入口 */
  entry: path.join(__dirname, 'src/main.js'),
  // output: {
  //   path: path.join(__dirname, 'boundle'),
  //   filename: 'index.js'
  // },
  plugins: [
    new HtmlWebpackPlugin({
      template: path.resolve(__dirname, 'public/index.html')
    })
  ],
  module: {
    rules: [
      {
        test: /\.css$/,
        use: ['style-loader', 'css-loader']
      }
    ]
  },
  resolve: {
    alias: {
      "ss": path.join(__dirname, 'src')
    }
  }
}